if __name__ == '__main__':
    # for i in range(4, -1, -1):
    #     # print(i)
    #     for _ in range(i):
    #         print(" ", end="")
    #     for _ in range(9 - 2 * i):
    #         print("*", end="")
    #     print()

    for i in range(5):
        for _ in range(i):
            print(" ", end="")
        for _ in range(9- 2 * i):
            print("*", end="")
        print()